package com.sc.common.util;
public enum DefaultRedisKeyNS {
    testKey(55, "测试用的key"),
    session(3600, "存储用户session信息的key"),
    uid_token(14400, "存储用户id和session的token之间的对应关系"),
    vc(300, "验证码命名空间"),
    ei(86400, "错误输入次数统计"),
    index(3600, "学生首页跳转的缓存"),
    flowcrtl(10, "流控信息"),
    pc(3600, "problem_content的基础缓存"),
    bookSort(0, "教材顺序"),
    lk(86400, "后台菜单权限，以JSON字符串格式存储"),
    dp(1800, "数据权限缓存"),
    ba(0, "省市县等地理信息"),
    asyncJobAttr(5400, "后台异步任务框架任务属性信息"),
    asyncLbTaskDetail(5400, "后台异步任务框架任务处理详情"),
    asyncLbTasks(1800, "后台异步任务框架task的存放空间"),
    makeMagazineRetry(43200 , "生成线下作业重试"),
    makeMagazineInit(600, "系统启动时检查线下未完成的线下作业"),
    examFeedbackClass(1800, "试卷反馈班级数据"),
    studentActiveTime(1800, "学生活跃时间"),
    studentActiveList(1800, "需入库学生活跃时间列表"),
    pdcPerDetail(86400 , "每个做题详情"),
    pdcDtlIndex(86400 , "各种指标和做题详情的对应关系"),
    pdcQuotaIds(86400 , "各种指标ID的集合");

    private final int expireTime;
    private final String desc;
    private final boolean needRemoveAllCacheAfterModify;

    private DefaultRedisKeyNS(int expireTime, String desc) {
        this.expireTime = expireTime;
        this.desc = desc;
        this.needRemoveAllCacheAfterModify = false;
    }


    public String getNameSpace() {
        return this.name();
    }

    public int getExpire() {
        return this.expireTime;
    }

    public boolean needRemoveAllCacheAfterModify() {
        return this.needRemoveAllCacheAfterModify;
    }


    public String getDesc() {
        return this.desc;
    }
}
